We love listening to all types of music. Therefore, when we are going to top hits playlists, we wondered why certain songs tended to dominant in the Spotify playlists, so we want to ask the question, “what factors allow songs to be popular?” We took to a dataset that was pulled from the Spotify API. The dataset contains 603 songs. For each song, there is information about bpm, nrgy, dnce, dB, live, val, dur, acous, spch, pop. We will use these features to determine a certain feature that impacts popularity directly.
Looking at the data overall, since we are looking at the most popular songs, here is the popularity score to better understand what it means – 66.52. There are a lot of genres in this dataset; there are 50 genres! The most popular genre, which is determined by the highest average popularity is escape room. The top artist overall though is determined through the artist with the most songs in the top of Spotify. The top artist is Katy Perry.
To get a better idea of popularity specific to genre on Spotify, we aggregated our data and found the number of songs with that genre and the mean of the popularity for each of the genres. BPM and Danceability are also included since they will be used later in visualizations. Count of the songs were included since this is a top songs compilation of data, so more songs in the top ranks of popularity were included more. Here is just a small set of our data since there are many genres.
| Top Genre | Average Popularity | Total No. Tracks | Average Danceability | Average BPM |
|---|---|---|---|---|
| escape room | 90.0 | 2 | 69.5 | 127.0 |
| brostep | 86.0 | 2 | 60.5 | 121.0 |
| alternative r&b | 84.0 | 1 | 90.0 | 136.0 |
| irish singer-songwriter | 81.0 | 1 | 57.0 | 129.0 |
| celtic rock | 80.0 | 1 | 42.0 | 85.0 |
| danish pop | 80.0 | 1 | 77.0 | 120.0 |
| electronic trap | 79.5 | 2 | 74.5 | 98.0 |
| edm | 78.2 | 5 | 63.6 | 100.4 |
| canadian contemporary r&b | 77.7 | 9 | 54.6 | 127.0 |
| electropop | 77.5 | 13 | 64.7 | 112.8 |
| contemporary country | 76.0 | 1 | 47.0 | 86.0 |
| pop | 74.8 | 60 | 68.5 | 117.1 |
| electro | 74.5 | 2 | 81.0 | 108.0 |
| canadian hip hop | 73.5 | 2 | 78.0 | 109.0 |
| detroit hip hop | 73.5 | 2 | 61.5 | 84.5 |
Observations:
Looking at the data, Dance pop has the most number of songs in the Spotify playlists, but it’s popularity for each of the songs tend to just be average.
Most songs actually only have a couple songs in each genre, so the averages might not truly reflect the overall popularity of the genre itself. For instance, brostep has 2 songs with 86 popularity.
The lowest average popularity song seems to come from Canadian Latin with only one song. The song is 18 popularity points.
Most songs however seem to land around 60-80 across varying genres.
Observation:
From the line plot, we can see that as as the popularity level increases, the bpm decreases, converging at about 115 bpm. This observation changes when popularity level hits above 50, where there is an upward-sloping relationship in which the bpm increases with popularity level.
Once we pass a popularity level of 72, we can see that the higher the popularity level,the lower the bpm. This can imply that slow songs with a lower bpm have been more popular.
We also note that there is a large error margin (seen in the grey area), where songs of the same popularity can have either very high bpm or very low bpm. As such, it is important to note that there are many variables which can contribute a song’s popularity. Although there is acorrelation between the tempo of a song and its popularity, causation is not proven.
This bar chart was intended to show the most popular pop songs and music genres changes within a decade. Each of on the chart represent the most popular song(s) of that year with the highest popularity index. Note: The popularity index was based on spotify’s popularity index. Ranging from 0 to 100, which shows the least popular songs to the most popular songs.
We wanted to visualize if popularity had a correlational relationship with the danceability of a track. This scatter plot depicts track popularity compared to track danceability, both measured on a scale from 0 (not popular) to 100 (popular). Each dot on the plot represents a single track by an artist. The dots are colored to represent the various genres of Spotify’s top tracks between 2010 and 2019.
This bar chart was intended to show the most popular pop songs and music genres changes within a decade. Each of on the chart represent the most popular song(s) of that year with the highest popularity index.
Note: The popularity index was based on spotify’s popularity index. Ranging from 0 to 100, which shows the least popular songs to the most popular songs. >>>>>>> f31508a0d8f8f77cc87098e99b5dccb50d8e3fd6Important Insights:
Throughtout years, people’s favorite music genres have changed over time. From this horizontal bar chart, we could see that there are four main pop music genres that are most popular from 2010 to 2019, which are canadian contemporary R&B, dance pop, neo mellow, and pop music.
From year 2011 to 2013, the most popular pop songs are A Thousand Years, Titanium, and Underneath the Tree, which all fall under the dance pop music genre. Notably, there are three pop songs that have the same popularity index in the year of 2015. In addition, the song Memories has the highest popularity index among other songs on the chart with a number of 99.